let promise = Promise.resolve();
promise.then(() => console.info("promise done!"));
console.info("code finished"); // 这个  先显示

Promise.resolve()
  .then(() => console.info("promise done!"))
  .then(() => console.info("code finished"));